<?php$connect = mysql_connect('localhost','root','');mysql_select_db("ajax_form");?><?php$id = $_GET['id'];$se = "SELECT * from userlist where userid='$id'";$sw = mysql_query($se);$sa = mysql_fetch_array($sw);echo json_encode($sa);?>